home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
3_0
/
MIDIMERG
/
MIDIMERG.H
< prev
next >
Wrap
Text File
|
1988-12-08
|
805b
|
27 lines
/* MidiMerger.h:
This allows a Mac program to send stuff to a device, while also
allowing input from a keyboard to go to the device as well,
merging input from both sources. The structure isn't brilliant;
I've just copied the structure from the assembly routines, so
the two ports work independently. I will do this properly
sometime. */
typedef unsigned char BYTE;
typedef enum {
MODEM, PRINTER
} PORT;
extern void startMidi(PORT port);
extern void stopMidi(PORT port);
extern void channelise(PORT port, int channel);
extern void noChannelise(PORT port);
extern void idleMidi(PORT input, PORT output);
/* Idle from one port to another,
processing the messages. */
extern void transmitMidi(PORT port, BYTE *message);
/* Send a complete MIDI message. */